home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1995 March / Macworld CD-ROM (March 1995).cdr / Updaters / AppMaker 1.5.2->1.5.4 / Libraries / THINK / AMClassLibC / CAMIconPane.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-21  |  988 b   |  50 lines  |  [TEXT/KAHL]

  1. /******************************************************************************
  2.  CAMIconPane.h
  3.  
  4.         Interface for AMIconPane class
  5.         
  6.     SUPERCLASS = CIconPane
  7.     
  8.     Copyright © 1991 Bowers Development Corporation. All rights reserved.
  9.     
  10.  
  11.  ******************************************************************************/
  12.  
  13. #pragma once
  14.  
  15. #include <CIconPane.h>
  16.  
  17. /*----------*/
  18. class CAMIconPane : public CIconPane
  19. {    
  20. public:
  21.     void    IViewTemp        (CView            *anEnclosure,
  22.                               CBureaucrat    *aSupervisor,
  23.                              Ptr            viewData);        // is override
  24.  
  25.     void    Draw            (Rect            *area);            // is override
  26.     
  27.     void    SetRadio        (Boolean        onOrOff);
  28.  
  29.     void     DoClick            (Point            hitPt,
  30.                              short            modifierKeys,
  31.                              long            when);            // is override
  32.  
  33. protected:
  34.     Boolean            isOn;
  35.  
  36. };
  37.  
  38. /* Change protocol for CAMIconPane */
  39.  
  40. enum
  41. {
  42.             /* The icon radio has turned on. The info parameter */
  43.             /* is a pointer (Boolean*) to the new value */
  44.     radioChanged = bureaucratLastChange + 1,
  45.     
  46.     iconLastChange = radioChanged
  47.     
  48. };
  49.  
  50.